<?php foreach ($view['session']->getFlash('error') as $message): ?>
    <div class="alert alert-error">
        <?php echo $message; ?>
    </div>
<?php endforeach; ?>
<?php foreach ($view['session']->getFlash('success') as $message): ?>	
    <div class="alert alert-success">
        <?php echo $message; ?>
    </div>
<?php endforeach; ?>